package sit.engreal.leetcode.problems400;

/**
 * <a href="https://leetcode.cn/problems/reverse-string/">344. 反转字符串</a>
 */
public class LeetCode344 {

    public void reverseString(char[] s) {
        for (int i = 0, j = s.length - 1; i < j; i++, j--) {
            char tmp = s[i];
            s[i] = s[j];
            s[j] = tmp;
        }
    }
}
